package com.nuanshui.heatedloan.module.model;

import com.nuanshui.heatedloan.dal.BaseEntityImpl;

import java.util.List;


public class Feature extends BaseEntityImpl {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5133190312941200198L;
	private String name;
	private Integer typeId;//类型Id，标识当前的feature的展示格式
	private String extData;
	private int moduleId;//这个id，就是在数据库表里面的typeId，别搞混了。只不过给客户端用这个字段展示
	private int featureId;
	private int flag;
	private Object data;
	private Integer showLine;
	private List<FeatureItem> internalData;
	private String serverData;
	private Integer orderNum;//排序字段
	private Integer enable;//是否可用
	private Integer isdDeleted;//是否删除当前feature，这个是用来后台配置feature的时候用的
	private Integer type;//用来接收serverdata的数据
	private Integer isPublic;//是否是公用的模块，1表示公用的，数据直接获取，0表示非公用的，数据根据场馆id获取
	private String moduleName;//根据这个名字来执行相同moduleID下使用不同的处理类
	private int featureDefaultId;//默认的 id 添加展馆默认的模块时候用的

	public int getFeatureDefaultId() {
		return featureDefaultId;
	}

	public void setFeatureDefaultId(int featureDefaultId) {
		this.featureDefaultId = featureDefaultId;
	}

	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public Integer getIsPublic() {
		return isPublic;
	}
	public void setIsPublic(Integer isPublic) {
		this.isPublic = isPublic;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getIsdDeleted() {
		return isdDeleted;
	}
	public void setIsdDeleted(Integer isdDeleted) {
		this.isdDeleted = isdDeleted;
	}
	public Integer getEnable() {
		return enable;
	}
	public void setEnable(Integer enable) {
		this.enable = enable;
	}
	public Integer getTypeId() {
		return typeId;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public String getServerData() {
		return serverData;
	}
	public void setServerData(String serverData) {
		this.serverData = serverData;
	}
	public List<FeatureItem> getInternalData() {
		return internalData;
	}
	public void setInternalData(List<FeatureItem> internalData) {
		this.internalData = internalData;
	}
	public int getModuleId() {
		return moduleId;
	}
	public void setModuleId(int moduleId) {
		this.moduleId = moduleId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public String getExtData() {
		return extData;
	}
	public void setExtData(String extData) {
		this.extData = extData;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public Integer getShowLine() {
		if(showLine == null) return 1;
		return showLine;
	}
	public void setShowLine(Integer showLine) {
		this.showLine = showLine;
	}
	public int getFeatureId() {
		return featureId;
	}
	public void setFeatureId(int featureId) {
		this.featureId = featureId;
	}
}
